import React, { Component } from 'react'
import { useParams, useLocation } from 'react-router-dom'
console.log('detail')
export default function Detail() {
  const { id } = useParams()
  const { state } = useLocation()

  return (
    <h5>
      detail的内容~~~{id},{state}
    </h5>
  )
}
